Fix some issues with reference handling in the printing code. (#429902,
authorMatthias Clasen <mclasen@redhat.com>
Mon, 30 Apr 2007 04:45:33 +0000 (04:45 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 30 Apr 2007 04:45:33 +0000 (04:45 +0000)
commita788ef97a4d51334de280075ed1dedcbc2d74e0f
tree5715f14df3d65184678001d01a31e715829f3e6f
parent7f95ef5ef311fd61cf6c708bcdb81c0dee6c4fe1
Fix some issues with reference handling in the printing code. (#429902,

2007-04-29  Matthias Clasen <mclasen@redhat.com>

        Fix some issues with reference handling in the printing
        code.  (#429902, Mathias Hasselmann)

        * gtk/gtkprintoperation.c (gtk_print_operation_finalize):
        Unref the print context, if we have one.
        (gtk_print_operation_done): Add a default ::done handler
        that unrefs the print context.
        (preview_ready): Take a reference on the print operation
        preview here.
        (print_pages_idle): ...not here,
        (preview_print_idle_done): ...and release it here.

        * tests/print-editor.c (preview_cb): Take a reference
        on the print operation here.

svn path=/trunk/; revision=17722
ChangeLog
gtk/gtkprintoperation.c
tests/print-editor.c